﻿using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAI.Infrastructure.Requests
{
    public record CreateChatTipRequest(string Title,string Content);
    public class CreateChatTipRequestValidator:AbstractValidator<CreateChatTipRequest> 
    {
        public CreateChatTipRequestValidator() 
        {
            RuleFor(x => x.Title).NotEmpty().NotNull();
            RuleFor(x=>x.Content).NotEmpty().NotNull();
        }
    }
}
